package com.kyub.spring.gears.model;

/**

 */
public class FieldLayoutMetadata implements FieldLayout {

    String refPropertyName;

    String formatter;

    String hrefPattern;

    String hrefParams;

    String label;

    public void setRefPropertyName(String refPropertyName) {
        this.refPropertyName = refPropertyName;

    }

    public String getRefPropertyName() {
        return refPropertyName;
    }

    public String getFormatter() {
        return formatter;
    }

    public void setFormatter(String formatter) {
        this.formatter = formatter;
    }

    public String getHrefPattern() {
        return hrefPattern;
    }

    public void setHrefPattern(String hrefPattern) {
        this.hrefPattern = hrefPattern;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public boolean isHref() {
        return this.hrefPattern != null;
    }

    public String getHrefParams() {
        return hrefParams;
    }

    public void setHrefParams(String hrefParams) {
        this.hrefParams = hrefParams;
    }
}
